package com.abc.scholarship.service;

import com.abc.scholarship.domain.dto.UserStudentDTO;
import com.abc.scholarship.domain.entity.User;
import com.abc.scholarship.domain.page.PageDTO;
import com.abc.scholarship.domain.page.PageQuery;
import com.abc.scholarship.domain.vo.resp.ApplyVO;
import com.abc.scholarship.domain.vo.resp.UserQueryVo;
import com.abc.scholarship.domain.vo.resp.UserStudentVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author jzw
 * @since 2024-07-02
 */
public interface UserService extends IService<User> {

    void importStu(MultipartFile multipartFile);

    /**根据用户名查用户
     * @param username
     * @return
     */
    User findUserByUsername(String username);

    /**
     * 学生用户分页查询
     * @param
     * @return
     */
    IPage<UserStudentVO> queryUser(Page<UserStudentVO> page, UserQueryVo userQueryVo);

    UserStudentVO getUserById(Long id);

    void addUser(UserStudentDTO userStudentDTO);

    /**
     * 修改用户信息
     * @param userStudentDTO
     */
    void updateUser(UserStudentDTO userStudentDTO);
}
